#pragma once
#ifndef TM_BASE_METHODS_H_
#define TM_BASE_METHODS_H_

#include <cuda_runtime.h>

namespace recognition {

double mypow(double a, int deg);

double GetDevMemoryUsedMb();
void ReportDevMemoryUsage(log4cxx::LoggerPtr logger, const char* func_name, double dev_mem_used_start);
void ReportMethodExecutionTime(log4cxx::LoggerPtr logger, const char* func_name, double time);
void ReportKernelExecutionTime(log4cxx::LoggerPtr logger, const char* func_name, double time);

}	// namespace recognition

#endif	// TM_BASE_METHODS_H_
